package com.platform.enums;


import com.platform.comm.enums.IDictEntry;
import com.platform.comm.enums.IEnumItem;

/**
 * Title: DirExFlowDirection
 * Description: 资源交换数据来源
 * Date 2020/4/20
 *
 * @author wxw
 * @version v1.0
 */
public enum DirExSourceType implements IDictEntry, IEnumItem {
    /**
     * 数据来源交换平台类型
     */
    CSDB("贴源库"),ZXDB("中心库");

    private final String source;

    DirExSourceType(String source) {
        this.source = source;
    }


    @Override
    public String getKey() {
        return name();
    }

    @Override
    public String getValue() {
        return source;
    }

    @Override
    public Object getData() {
        return this;
    }

    @Override
    public boolean is(String code) {
        return name().equals(code);
    }
}
